<div class="content">
	<form class="form">
		<div>
			<input type="hidden" name="userFilter" value="<?= isset($_GET['userFilter']) ? $_GET['userFilter'] : '';?>">
			<input type="text" name="search" class="search"/>
			<button type="submit" class="blue" value="Найти">
				<span class="label">Найти</span>
			</button>

			</div>
			<? $this->widget("WUserFilter", array("visible" => Y::isAuthed(), 'url' => '/service/list')); ?>
		<div class="clear"></div>
	</form>


	<?php
		$this->widget('zii.widgets.CListView', array(
			'dataProvider' => $services,
			'itemView' => '_service',
			'template' => '<div class="align-left">{sorter}</div><div class="clear"></div> {items} <hr> {pager}',
			'sorterHeader' => 'Сортировать по:',
			'sortableAttributes' => array('t_create', 'status'),
			'pager' => array(
				'class' => 'CLinkPager',
				'header' => false,
				'cssFile' => Y::theme() . '/css/pager.css',
				'nextPageLabel' => "»",
				'prevPageLabel' => "«",
			),
			'emptyText' => '<div class="info">Ни одной просьбы не нашлось.</div>'
		));
	?>
</div>
